package com.imooc.activiti.delegate;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author lynn
 * @date 18-12-23 下午3:53
 */
public class MdcErrorDelegate implements JavaDelegate {

    private static final Logger LOGGER = LoggerFactory.getLogger(MdcErrorDelegate.class);

    @Override
    public void execute(DelegateExecution delegateExecution) {

        LOGGER.info("run MdcErrorDelegate");
        throw new RuntimeException("only test");

    }
}
